﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using VideoNetApplication.Common.Helper;

namespace VideoNetApplication.Common.Web
{
  public  class MessageArguments
    {
        public MessageArguments(NameValueCollection form)
        {
            this.FromUserCode = DataHelper.GetString(form["FromUserCode"]);
            //this.ToUserCode = DataHelper.GetString(form["ToUserCode"]);
            this.ItemID = DataHelper.GetInteger(form["ItemID"]);
            //this.PCode = DataHelper.GetString(form["PCode"]);

            this.IsReload = DataHelper.GetBoolean(form["IsReload"]);
            this.PageSize = DataHelper.GetInteger(form["PageSize"]);
            this.PageCount = DataHelper.GetInteger(form["PageCount"]);
            this.PageIndex = DataHelper.GetInteger(form["PageIndex"]);
        }


        /// <summary>
        /// 是否重新加载数据，true是只加载内容，不加载其它
        /// </summary>
        public bool IsReload { get; set; }


        /// <summary>
        /// 来自
        /// </summary>
        public string FromUserCode { get; set; }


        /// <summary>
        /// 发给
        /// </summary>
        public int ToUserCode { get; set; }


       

        /// <summary>
        /// 对象ID
        /// </summary>
        public int ItemID { get; set; }

        /// <summary>
        /// 每页显示条数
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 页数
        /// </summary>
        public int PageCount { get; set; }

        /// <summary>
        /// 查询开始索引

        /// </summary>
        public int PageIndex { get; set; }

    }
}

